using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using UnityEngine;
using UnityEngine.EventSystems;
using UnityEngine.UI;

namespace Koakuma.Game.AuctionUI
{
    public class BagItemView:MonoBehaviour,IPointerDownHandler
    {
        public int index;
        public Image icon;
        public Text txt_count;
        public Action<int, PointerEventData> onClick;

        public void OnPointerDown(PointerEventData eventData)
        {
            onClick?.Invoke(index, eventData);
        }
    }
}
